<?php

namespace app\shopConsole\validate;

use think\Validate;

class TagValidate extends Validate
{
    protected $rule = [
        'name|名字'         => 'require',
        'page|页码'         => 'require|number',
        'perPage|每页数量'   => 'require|number',
    ];

    protected $scene = [
        'create' => ['name'] ,
        'get'    => ['page', 'perPage'] ,
    ];

}